Skip to content

[expr.new] Extend example for new-expressions with zero size arrays #7055

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 16, 2024

Conversation

Eisenwave
Copy link
Member

Someone has told me that they've been reading [expr.new] p6 wrong; namely in a way that implies new int[0] is ill-formed.

It's not immediately obvious that it is okay even though the wording says that something shall not be zero.

image

@Eisenwave Eisenwave requested a review from jensmaurer June 11, 2024 14:44
@Eisenwave Eisenwave requested a review from jensmaurer June 18, 2024 14:52
@tkoeppe
Copy link
Contributor

tkoeppe commented Aug 5, 2024

@jensmaurer could you have another look?

@tkoeppe
Copy link
Contributor

tkoeppe commented Oct 16, 2024

This is nice, thanks!

@tkoeppe tkoeppe merged commit 8b2c7fc into cplusplus:main Oct 16, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants